alternate color on two consecutive rows

45

tr {
    background: blue;
}

tr:nth-child(4n+1), tr:nth-child(4n+2) {
    background: red;
}

Comments

Submit
0 Comments